package org.inspursc.s0517.health.common.service;

import org.inspursc.s0517.health.common.entity.SysPermission;

import java.util.List;

/**
 * @author B_Dream
 * @date 2018/5/29 19:59
 */
public interface SysPermissionService {
    SysPermission save(SysPermission permission);

    SysPermission findById(Integer id);

    List<SysPermission> findAll();

    List<SysPermission> findByUserId(Integer userId);

    List<SysPermission> findByGroupId(Integer groupId);

    boolean deleteById(Integer id);
}
